﻿using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using kxcxw.Data.Entities;


namespace kxcxw.Data.Mapping
{
    /// <summary>
    /// 反馈信息
    /// </summary>
    public class FeedbackMap : EntityTypeConfiguration<Feedback>
    {
        public FeedbackMap()
        {
            HasKey(t => t.FeedbackId);

            Property(t => t.FeedbackId).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            ToTable("Feedback");

            Property(t => t.UserID).HasColumnName("UserID");
            Property(t => t.UserName).HasColumnName("UserName");
            Property(t => t.ContactInfo).HasColumnName("ContactInfo");
            Property(t => t.FeedbackContent).HasColumnName("FeedbackContent");
            Property(t => t.CreateDate).HasColumnName("CreateDate");
            Property(t => t.UserAddr).HasColumnName("UserAddr");
        }
    }//class
}
